#include<stdio.h>
int main()
{
printf("please enter your lirun rank\n");//如果不是自己输入，就得在前面使用if语句来为利润划分等级，因为switch只接受常量
char rank;
float lirun;
float jiang;
scanf("%c",&rank);
printf("please enter your lirun\n");
scanf("%f",&lirun);

switch (rank)
{
case 'A':jiang=(lirun-1000000)*0.01;
    break;
case 'B':jiang=(lirun-600000)*0.015;
break;
case 'C':jiang=(lirun-400000)*0.03;
break;
case 'D':jiang=(lirun-100000)*0.05;
break;
case 'E':jiang=lirun*0.1;
default:
    break;
}
printf("your money is %3.1f!!!!!!!",jiang);
return 0;

}
